import httpInstance from '@/utils/http'

// 封装所用的和用户相关的接口函数
export const loginAPI = ({ account, password }) => {
    return httpInstance({
        url: '/login',
        method: 'POST',
        // post请求而且是Body体参数
        data: {
            account,
            password
        }
    })
}

export const getLikeListAPI = ({ limit = 4 }) => {
    return httpInstance({
        url: '/goods/relevant',
        params: {
            limit
        }
    })
}